<template>
  <div>
    <Header :isLogin="isLogin" :newMsg="newMsg"/>
    <Detail/>
    <Footer/>
  </div>
</template>

<script>
import Header from "../../../header/header";
import Detail from "../detail/detail";
import Footer from "../../../footer/footer";
export default {
  data(){
    return{
      isLogin:false,
      newMsg:false
    }
  },
  components: {
    Header,
    Detail,
    Footer
  },
    mounted() {
    this.axios.get("/user/info").then((resp)=>{
        if(resp.code != 0){
        }else{
          this.EventBus.$emit("isLogin",true,resp.data.newMsg,resp.data.role)
        }
      })
  }
};
</script>

<style>
</style>
